﻿<include file="../Public/header" />
<div class="ncenter_box">
<div class="accounttitle"><h1>手动匹配</h1></div>
<!-- <div class="accounttitle"><h1>结算每周分红 </h1></div> -->
<table width="100%" border="0" cellspacing="10" cellpadding="0">
    <form method="post" name="match" action="__URL__/manaul_match">
    <tr>
      <td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="tab11 tab_bor">
    <h2>匹配区</h2>
    <tr>
      <td width="50%" height="20"> 进场订单编号:<input type="text" name="inCode"/></td>
    </tr>
    <tr>
      <td width="50%">出场订单编号:<input type="text" name="outCode"/></td>
    </tr>
    <tr>
      <td><input type="submit" name="action" value="匹配订单" class="button_text" onClick="if(confirm('确定要匹配订单吗?')) return true; else return false;">&nbsp;&nbsp;</td>
      </tr>
    </form>
</table>
<table width="100%" border="0" cellspacing="10" cellpadding="0">
      <div id="result" style="text-align:center">
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tab11 tab_bor">
        <h2>挂单进场</h2>
      <tr>
          <td width="20%" height="20"> 订单编号</td>
          <td width="20%">日期</td>
          <td width="10%">会员编号</td>
          <td width="10%">挂单金额</td>
          <td width="20%">状态</td>
          <td width="20%">是否超时</td>
      </tr>
      <volist name="elist" id="vo">
      <tr>
          <td width="20%" height="20">{$vo['order_id']}</td>
          <td width="20%">{$vo['rdt']|date='Y-m-d H:i:s',###}</td>
          <td width="10%">{$vo['user_id']}</td>
          <td width="10%">{$vo['money']}</td>
          <td width="20%">
          	<eq name="vo['is_sh']" value='0'>审核中</eq>
          	<eq name="vo['is_sh']" value='1'>部分匹配</eq>
          	<eq name="vo['is_sh']" value='2'>已匹配成功</eq></td>
          <td width="20%">
            <eq name="vo['is_out']" value='0'>未超时</eq>
            <eq name="vo['is_out']" value='1'>已超时</eq></td>
      </tr>
      </volist>
      </table>
      <table width="100%" style="background:#f7f9fa; border-top:1px solid #f2f3f6;">
            <tr align='center'>
                <td>{$page}</td>
            </tr>
        </table> 
      <br/>
<br/>

<table width="100%" border="0" cellspacing="10" cellpadding="0">
      <div id="result" style="text-align:center">
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tab11 tab_bor">
        <h2>挂单出场</h2>
      <tr>
          <td width="20%" height="20"> 订单编号</td>
          <td width="20%">日期</td>
          <td width="10%">会员编号</td>
          <td width="10%">挂单金额</td>
          <td width="20%">状态</td>
          <td width="10%">是否超时</td>
          <td width="10%">操作</td>
      </tr>
      <volist name="eblist" id="evo">
      <tr>
          <td width="20%" height="20">{$evo['order_id']}</td>
          <td width="20%">{$evo['rdt']|date='Y-m-d H:i:s',###}</td>
          <td width="10%">{$evo['user_id']}</td>
          <td width="10%">{$evo['money']}</td>
          <td width="20%">
          	<eq name="evo['is_sh']" value='0'>
            <span style="color:#017ce8">审核中
            	<eq name="evo['is_buy']" value='0'><a href="__URL__/eb_listDelAC/del_id/{$evo['id']}">删除订单</a></eq>
            </span>
            </eq>
            <eq name="evo['is_sh']" value='1'>部分匹配</eq>
            <eq name="evo['is_sh']" value='2'>已匹配成功</eq>
           </td>
           <td width="10%">
            <eq name="evo['is_out']" value='0'>未超时</eq>
            <eq name="evo['is_out']" value='1'>已超时</eq></td>
          <td width="10%">
          	<eq name="evo['is_pay']" value='1'>已确认
            <else />
              <eq name="evo['is_buy']" value='0'>审核中</eq>
              <eq name="evo['is_buy']" value='1'>等待汇款</eq>
              <eq name="evo['is_buy']" value='2'><a href="__URL__/admin_eblist_done/cid/{$vo['id']}">确认收款<a/></eq>
            </eq>
                      </td>
      </tr>
      </volist>
      </table>
      <table width="100%" style="background:#f7f9fa; border-top:1px solid #f2f3f6;">
            <tr align='center'>
                <td>{$page1}</td>
            </tr>
      </table> 
      
      
      
      
      
      <table width="100%" align="center">
      <tr>
      
      
       <td><input type="button" name="autopp" value="一键匹配"  class="button_text" onclick="autopp()"/><span style="color:red;margin-left:10px;">(此按钮用于匹配已经排完队的订单)</span></td>
      
      
      
      <td align="center"><form method='post' action="__APP__/Cash/adminCash/">订单搜索：<input type="text" name="UserID" title="帐号查询">
      &nbsp;&nbsp;&nbsp;&nbsp;
      <input type="submit" name="Submit" value="查询"  class="button_text"/>
      &nbsp;
      <input name="button3" type="button" onClick="window.location.href='/C132-ac/index.php/YouZi/financeDaoChu_DingDan/'" value="将所有订单导出Excel表格" class="button_text" />
      <input type="hidden" name="__hash__" value="dc746af1069f4f22fd2ec7948822dddc_55079f608c8dfc447d9e2e3cf71ecb44" /><input type="hidden" name="__hash__" value="dc746af1069f4f22fd2ec7948822dddc_55079f608c8dfc447d9e2e3cf71ecb44" /></form></td>
      </tr>
      </table>
      </div>
</table>
      </div>
</table>

</div>

<script type="text/javascript">
function autopp(){
	location.href="__APP__/Cash/autopp/";
}
</script>

</body>
</html>